package practice01;

public class Practice1 {
    public static void main(String[] args) {
        //求20的阶乘
        long result = cheng(20);
        System.out.println(result);
    }
    public static long cheng(int n){
        if (n==1||n==0) return 1;
        return n*cheng(n-1);
    }
}
